/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.VipServiceReceiveman;
import com.sasis.dao.VipServiceReceivemanDao;
import com.sasis.service.VipServiceReceivemanManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class VipServiceReceivemanManagerImpl extends BaseManager implements VipServiceReceivemanManager {
    private VipServiceReceivemanDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setVipServiceReceivemanDao(VipServiceReceivemanDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.VipServiceReceivemanManager#getVipServiceReceivemans(com.sasis.model.VipServiceReceiveman)
     */
    public List getVipServiceReceivemans(final VipServiceReceiveman vipServiceReceiveman) {
        return dao.getVipServiceReceivemans(vipServiceReceiveman);
    }

    /**
     * @see com.sasis.service.VipServiceReceivemanManager#getVipServiceReceiveman(String id)
     */
    public VipServiceReceiveman getVipServiceReceiveman(final String id) {
        return dao.getVipServiceReceiveman(new Integer(id));
    }

    /**
     * @see com.sasis.service.VipServiceReceivemanManager#saveVipServiceReceiveman(VipServiceReceiveman vipServiceReceiveman)
     */
    public int saveVipServiceReceiveman(VipServiceReceiveman vipServiceReceiveman) {
        return dao.saveVipServiceReceiveman(vipServiceReceiveman);
    }

    /**
     * @see com.sasis.service.VipServiceReceivemanManager#removeVipServiceReceiveman(String id)
     */
    public void removeVipServiceReceiveman(VipServiceReceiveman vipServiceReceiveman) {
        dao.removeVipServiceReceiveman( vipServiceReceiveman);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
